-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FIX Treedropdown css #1166
FIX Treedropdown css #1166
Conversation
203211e
to
f791ef2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably also fix the text colour while we're at it.
.is-open>.Select-control, | ||
.Select-menu-outer { | ||
.Select-arrow-zone { | ||
vertical-align: initial; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to actually just move the arrow up by about 1 pixel instead of vertically centering it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure about this? See screenshot below
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have removed the vertical align
a) What's wrong with the text colour? I'm not sure what you're referring to? b) Re the arrow alignment, testing in chrome, it seems fine?: |
f791ef2
to
70d3342
Compare
.is-open>.Select-control, | ||
.Select-menu-outer { | ||
.Select-arrow-zone { | ||
vertical-align: initial; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.Select-control { | ||
border-color: $gray-200; | ||
box-shadow: none; | ||
} | ||
|
||
.Select.is-focused:not(.is-open) > .Select-control, | ||
.is-open > .Select-control { | ||
border-color: $brand-primary; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have added box-shadow: none
so that the box shadows doesn't show
The box shadows comes from react-select - the DSM linked in the parent issue has no box-shadows so this seems correct https://projects.invisionapp.com/dsm/silver-stripe/silver-stripe/asset/components/5acd939108f7520011a65e5c
70d3342
to
13ad24b
Compare
13ad24b
to
771cb5f
Compare
Fixes #853